## Makefile.am -- Process this file with automake to produce Makefile.in
SUBDIRS = introspection etc/gappman

ACLOCAL_AMFLAGS = -I m4
noinst_HEADERS = listener.h appmanager.h listener-dbus.h appmanager_panel.h appmanager_buttonmenu.h
bin_PROGRAMS = gappman 
gappman_SOURCES = appmanager.c listener.c appmanager_panel.c appmanager_buttonmenu.c
if WITH_DBUS_SUPPORT
gappman_SOURCES += listener-dbus.c
else
gappman_SOURCES += listener-socket.c
endif
gappman_CPPFLAGS = $(GTK_CFLAGS)
gappman_CPPFLAGS += $(GLIB_CFLAGS)
gappman_CPPFLAGS += $(LIBXML_CFLAGS)
gappman_CPPFLAGS += @GM_INCLUDES@
gappman_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\""
if WITH_DBUS_SUPPORT
gappman_CPPFLAGS += $(DBUS_CFLAGS)
endif
gappman_LDADD = @GM_OBJS@
if WITH_DBUS_SUPPORT
gappman_LDADD += $(DBUS_LIBS)
endif
gappman_LDADD += $(GLIB_LIBS)
gappman_LDADD += $(GTHREAD_LIBS)
gappman_LDADD += $(GTK_LIBS)
gappman_LDADD += $(LIBXML_LIBS)
gappmandir = $(top_builddir)/appmanager

BUILT_SOURCES = gm_listener_glue.h

gm_listener_glue.h: introspection/gm_appmanager.xml
	dbus-binding-tool --prefix=gm_appmanager --mode=glib-server --output=$@ $<
